package com.server.questionbank.snframe.service.CourseService;

import com.server.questionbank.snframe.domain.Course.Chapter.LessonsResource;
import com.server.questionbank.snframe.domain.Course.Chapter.UpdateChapter;
import com.server.questionbank.snframe.domain.Course.Chapter.TChapter;
import com.server.questionbank.snframe.domain.Course.Chapter.TLessons;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface TChapterService {
    // 获取章节列表
    public List<TChapter> getChapterList(Long courseId);

    // 获取章节信息
    public TChapter getChapterInfo(Long chapterId);

    // 获取课时列表
    public List<TLessons> getLessonList(Long chapterId);

    // 获取课时信息
    public TLessons getLessonInfo(Long lessonsId);

    // 获取课时资源
    public List<LessonsResource> getLessonResource(Long lessonsId);

    // 获取课时资源信息
    public LessonsResource getLessonResourceInfo(Long resourceId);

    // 创建章节
    public Boolean updateChapters(Long courseId, List<UpdateChapter> updateChapters,  Long updateBy);

    // 更新课时资源
    public Boolean updateLessonResource(Long lessonId, List<LessonsResource> lessonsResourceList, Long updateBy);

    // 上传课时资源
    public void uploadFlie(MultipartFile file, Long courseId, Long chapterId, Long lessonsId, LessonsResource lessonsResource) throws Exception;
}
